import java.util.Scanner;

public class Protice10 {
    public static void main(String[] args) {
        //现有一个int 数组，数组中有十个元素。将数组反转后输出
        int[] num = new int[10];
        int[] cd = new int[10];
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数组：");
        for(int i = 0;i <10;i++){
            num[i]=sc.nextInt();
        }
        for (int i=0;i<num.length;i++){
            cd[i] = num[num.length-i-1];
        }
        for (int i=0;i<cd.length;i++){
            num[i] = cd[i];
            System.out.print(num[i]+" ");
        }
    }

}
